package com.lecture.java8.test;

import lombok.Data;

/**
 * @program: spring-lecture
 * @description:
 * @author: luyn
 * @create: 2020-04-14 18:41
 **/
@Data
public class User{

    int age;
    String name;


    public static void main(String[] args) {
        //HashMap
        Integer n = new Integer(123);

        System.out.println(n instanceof Integer);
        System.out.println(n instanceof Number);

        System.out.println(n.getClass() == Integer.class);
       // System.out.println(n.getClass() == Number.class);
    }
}
